package main

import (
	"english_snippet/api/routes"
	"fmt"
	"net/http"
)

func main() {
	App := http.NewServeMux()

	App = routes.Set_routes(App)

	fmt.Println("Server started at http://localhost:8080")
	err := http.ListenAndServe(":8080", App)
	if err != nil {
		fmt.Printf("Server failed to start: %v\n", err)
	}
}
